module breathing_running_led_demo3(
	input Clk_50M,
	input Rst_n,
	output[7:0] Led_out
);

	wire Clk_51200Hz;
	wire Clk_10Hz;
	wire[7:0] Led_state;
	
	frequency_51200Hz f_51200Hz(
		.clk_50M(Clk_50M),
		.rst_n(Rst_n),
		.clk_51200Hz(Clk_51200Hz)  // 50M / 51.2K = 976; count = 976 / 2 - 1 = 487
	);
	
	frequency_10Hz f_10Hz(
		.clk_51200Hz(Clk_51200Hz),
		.rst_n(Rst_n),
		.clk_10Hz(Clk_10Hz)  //51200 / 10 = 5120; 5120 / 2 - 1 = 2559
	);
	
	led_state led_state0(
		.clk_10Hz(Clk_10Hz),
		.rst_n(Rst_n),
		.led_state(Led_state)
	);
	
	breathing_led breath0(
		.clk_51200Hz(Clk_51200Hz),
		.led_state(Led_state),
		.led_out(Led_out)
	);

endmodule
